package com.foxire.capsulation;

public class Test {
    public static void main(String[] args) {
        // 目标：搞清楚封装的设计思想，合理隐藏合理暴露，学会如何隐藏如何暴露
        Student s = new Student();
        s.name = "张三";
        s.setAge(19); // 赋值
        s.setChinese(100);
        s.setMath(80);
        System.out.println(s.getAge());
        s.printAll();
        s.printAverage();
    }
}
